/**
 * 配置编译环境和线上环境之间的切换
 *
 * baseUrl: 域名地址
 * routerMode: 路由模式
 * imgBaseUrl: 图片所在域名地址
 *
 */

let baseUrl = '';
let routerMode = 'hash';
let imgBaseUrl = '';


if (process.env.NODE_ENV == 'development') {
  imgBaseUrl = 'http://localhost:8082/file/getImgStream?fileName='
  baseUrl = "http://localhost:8082"
} else if (process.env.NODE_ENV == 'production') {
  baseUrl = 'http://waimai-api.microapp.store/api';
  imgBaseUrl = 'http://waimai-api.microapp.store/api/file/getImgStream?fileName=';
}

export {
  baseUrl,
  routerMode,
  imgBaseUrl,
}
